package org.sky.cloud.common.filter;

import org.sky.cloud.api.exception.SkyException;
import org.sky.cloud.common.filter.request.IFilterRequest;
import org.sky.cloud.common.filter.response.IFilterResponse;

import java.util.Properties;

public interface IFilter {

    void init(Properties properties);

    void doFilter(IFilterRequest request, IFilterResponse response, IFilterChain chain) throws SkyException;

    int order();
}
